package cn.wx.controller;

import cn.wx.domain.Josnre;
import cn.wx.domain.Store;
import cn.wx.mapper.StoreMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("store")
public class StoreController {

    @Autowired
    private StoreMapper storeMapper;


    @PostMapping
    public Josnre add(@RequestBody Store store){
        storeMapper.add(store);
        return  new Josnre();
    }

}
